struct Imu <: AbstractDevice end

type(::Type{Imu}) = :inertial_unit

function rollpitchyaw(dev::Device{Imu})
    v = Vector{Cdouble}(undef, 3)
    ret = @ccall lib.wb_inertial_unit_get_roll_pitch_yaw(dev.tag::Ptr{WbDeviceTag})::Ptr{Cdouble}
    unsafe_copyto!(pointer(v), ret, 3)
    v
end
